package com.ruoyi.teach.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 章节对象 nb_chapter
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节ID */
    private Long id;

    /** 课程表主键 */
    @Excel(name = "课程表主键")
    private Long courseId;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String name;

    /** 上级ID父ID */
    @Excel(name = "上级ID父ID")
    private Long parentId;

    /** 章节视频信息 */
    @Excel(name = "章节视频信息")
    private Long vedioId;

    /** 状态;1->正常 0->删除 */
    @Excel(name = "状态;1->正常 0->删除")
    private Integer status;

    /** 删除标志（0代表存在;2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setVedioId(Long vedioId) 
    {
        this.vedioId = vedioId;
    }

    public Long getVedioId() 
    {
        return vedioId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("vedioId", getVedioId())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
